'use strict'
import { View, ScrollView } from '../../component/index'
import globalStyle from '../css.css'
import style from './css.css'
import Descriptor from '../descriptor'
class ScrollViewBase extends React.Component {
  static propTypes = {
    children: PropTypes.node
  }

  render () {
    return (
      <View className={globalStyle.example}>
        <ScrollView
          className={style.verticalScrollView}>
          {this.props.children}
        </ScrollView>
        <Descriptor
          title="简单滚动"
        >
        拥有垂直和横向滚动两种模式(默认为垂直滚动)，此时只需设置其高度即可。
        </Descriptor>
      </View>
    )
  }
}
export default ScrollViewBase
